import { request } from '@/service/index'



export const wxPay = (params: {"orderId": number}) => {
  return request<any>({
    url: '/wx/pay/createWxOrder',
    method: 'POST',
    params
  }) 
}

// 测试
export const wxPaytest = (id: string) => {
  return request<API.PRODUCT>({
    url: `/wx/order/success/${id}`,
    method: 'GET',
  }) 
}
